import axios from "axios";

export const getUserName = (params) => {
  return axios.request({
    url: '/acl/user/employees',
    method: 'get',
    params
  })
}

export const delUserRomove = (params) => {
  return axios.request({
    url: '/acl/user/remove',
    method: 'delete',
    params
  })
}


export const saveUserName = (params) => {
  return axios.request({
    url: '/acl/user/save',
    method: 'post',
    data: params
  })

}

export const updateUser = (params) => {
  return axios.request({
    url: '/acl/user/updateUser',
    method: 'put',
    data: params
  })
}

export const UserAndRole=(params)=>{
  return axios.request({
    url:'/acl/user/userAndRole',
    method:'put',
    data:params
  })
}
